package com.hinner.controller;

import com.hinner.common.Result;
import com.hinner.entity.fenbushi.FbsLineMainDetail;
import com.hinner.entity.fenbushi.dto.JgdwDTO;
import com.hinner.service.FbsLineMainDetailService;
import com.hinner.service.FbsLineMainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/fbslinemainDetail")
public class FbsLineMainDetailController {
    @Autowired
    private FbsLineMainDetailService fbsLineMainDetailService;

    @GetMapping("/{jgdwId}")
    public Result getDetailByJgdwId(@PathVariable("jgdwId") String jgdwId){
        return Result.success(fbsLineMainDetailService.getDetailByJgdwId(jgdwId));
    }
}
